package com.mimose.component.chains.entity.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description 链路处理请求体
 * @Author ccy
 * @Date 2019/10/17 14:28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Request<A extends RequestBaseDto> {

    private A request;

    public static Request _Request(RequestBaseDto requestDto) {
        return Request.builder().request(requestDto).build();
    }

}
